package itsm.isperp.module.controller.app;

import itsm.isperp.framework.web.controller.BaseController;
import itsm.isperp.framework.web.response.ResultMessage;
import itsm.isperp.module.entity.app.AppLogAction;
import itsm.isperp.module.service.app.AppLogActionService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 控制器
 * 
 * @author lizx
 * @date 2014-09-05 17:30
 */
@Controller
@RequestMapping("app/logAction")
public class AppLogActionController extends BaseController<AppLogAction> {

	@Autowired
	protected AppLogActionService appLogActionService;

	@Override
	public AppLogActionService getService() {
		return this.appLogActionService;
	}

	@Override
	public String getPageTitle() {
		return "操作日志";
	}

	@RequestMapping("recoveData")
	@ResponseBody
	public ResultMessage recoveData(String id) {

		this.getService().recoverData(id);

		return ResultMessage.success();
	}

}
